import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "./assets/style/common.css"
import { Field } from 'vant';
import { Button } from 'vant';
import { Icon } from 'vant';
import { Popup } from 'vant';
import { Picker } from 'vant';
import { List } from 'vant';
import { Checkbox } from 'vant';
import { Tab, Tabs } from 'vant';
import { DatetimePicker } from 'vant';
import { DropdownMenu, DropdownItem } from 'vant';

Vue.use(Field);
Vue.use(Button);
Vue.use(Icon);
Vue.use(Popup);
Vue.use(Picker);
Vue.use(List);
Vue.use(Checkbox);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(DatetimePicker);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);

import {request} from "./api/request"
Vue.prototype.$request=request
Vue.config.productionTip = false;
import '@vant/touch-emulator';

Vue.directive('title', {
  inserted: function (el,binding) {
    document.title = el.dataset.title
  }
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");


